import request from '@/utils/request'

// 查询商品调价申请列表
export function listSkuQuote(query) {
  return request({
    url: '/goods/skuQuote/list',
    method: 'post',
    data: query
  })
}

// 查询商品调价申请详细
export function getSkuQuote(id) {
  return request({
    url: '/goods/skuQuote/' + id,
    method: 'get'
  })
}

// 新增商品调价申请
export function addSkuQuote(data) {
  return request({
    url: '/goods/skuQuote/add',
    method: 'post',
    data: data
  })
}

// 修改商品调价申请
export function updateSkuQuote(data) {
  return request({
    url: '/goods/skuQuote/update',
    method: 'post',
    data: data
  })
}

// 删除商品调价申请
export function delSkuQuote(id) {
  return request({
    url: '/goods/skuQuote/delete/' + id,
    method: 'post'
  })
}

// 商品调价申请审核
export function auditSkuQuote(id) {
  return request({
    url: '/goods/skuQuote/audit/' + id,
    method: 'post'
  })
}

// 商品调价申请审核撤销
export function auditCancelSkuQuote(id) {
  return request({
    url: '/goods/skuQuote/auditCancel/' + id,
    method: 'post'
  })
}

export function listQuoteHistory(query) {
  return request({
    url: '/goods/skuQuote/listHistory',
    method: 'post',
    data: query
  })
}